package com.dk.pojo.relaxation;

import java.util.ArrayList;
import java.util.List;

public class RelaxationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RelaxationExample(Class<Relaxation> relaxationClass) {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andRelaxationNameIsNull() {
            addCriterion("relaxation_name is null");
            return (Criteria) this;
        }

        public Criteria andRelaxationNameIsNotNull() {
            addCriterion("relaxation_name is not null");
            return (Criteria) this;
        }

        public Criteria andRelaxationNameEqualTo(String value) {
            addCriterion("relaxation_name =", value, "relaxationName");
            return (Criteria) this;
        }

        public Criteria andRelaxationNameNotEqualTo(String value) {
            addCriterion("relaxation_name <>", value, "relaxationName");
            return (Criteria) this;
        }

        public Criteria andRelaxationNameGreaterThan(String value) {
            addCriterion("relaxation_name >", value, "relaxationName");
            return (Criteria) this;
        }

        public Criteria andRelaxationNameGreaterThanOrEqualTo(String value) {
            addCriterion("relaxation_name >=", value, "relaxationName");
            return (Criteria) this;
        }

        public Criteria andRelaxationNameLessThan(String value) {
            addCriterion("relaxation_name <", value, "relaxationName");
            return (Criteria) this;
        }

        public Criteria andRelaxationNameLessThanOrEqualTo(String value) {
            addCriterion("relaxation_name <=", value, "relaxationName");
            return (Criteria) this;
        }

        public Criteria andRelaxationNameLike(String value) {
            addCriterion("relaxation_name like", value, "relaxationName");
            return (Criteria) this;
        }

        public Criteria andRelaxationNameNotLike(String value) {
            addCriterion("relaxation_name not like", value, "relaxationName");
            return (Criteria) this;
        }

        public Criteria andRelaxationNameIn(List<String> values) {
            addCriterion("relaxation_name in", values, "relaxationName");
            return (Criteria) this;
        }

        public Criteria andRelaxationNameNotIn(List<String> values) {
            addCriterion("relaxation_name not in", values, "relaxationName");
            return (Criteria) this;
        }

        public Criteria andRelaxationNameBetween(String value1, String value2) {
            addCriterion("relaxation_name between", value1, value2, "relaxationName");
            return (Criteria) this;
        }

        public Criteria andRelaxationNameNotBetween(String value1, String value2) {
            addCriterion("relaxation_name not between", value1, value2, "relaxationName");
            return (Criteria) this;
        }

        public Criteria andRelaxationImgIsNull() {
            addCriterion("relaxation_img is null");
            return (Criteria) this;
        }

        public Criteria andRelaxationImgIsNotNull() {
            addCriterion("relaxation_img is not null");
            return (Criteria) this;
        }

        public Criteria andRelaxationImgEqualTo(String value) {
            addCriterion("relaxation_img =", value, "relaxationImg");
            return (Criteria) this;
        }

        public Criteria andRelaxationImgNotEqualTo(String value) {
            addCriterion("relaxation_img <>", value, "relaxationImg");
            return (Criteria) this;
        }

        public Criteria andRelaxationImgGreaterThan(String value) {
            addCriterion("relaxation_img >", value, "relaxationImg");
            return (Criteria) this;
        }

        public Criteria andRelaxationImgGreaterThanOrEqualTo(String value) {
            addCriterion("relaxation_img >=", value, "relaxationImg");
            return (Criteria) this;
        }

        public Criteria andRelaxationImgLessThan(String value) {
            addCriterion("relaxation_img <", value, "relaxationImg");
            return (Criteria) this;
        }

        public Criteria andRelaxationImgLessThanOrEqualTo(String value) {
            addCriterion("relaxation_img <=", value, "relaxationImg");
            return (Criteria) this;
        }

        public Criteria andRelaxationImgLike(String value) {
            addCriterion("relaxation_img like", value, "relaxationImg");
            return (Criteria) this;
        }

        public Criteria andRelaxationImgNotLike(String value) {
            addCriterion("relaxation_img not like", value, "relaxationImg");
            return (Criteria) this;
        }

        public Criteria andRelaxationImgIn(List<String> values) {
            addCriterion("relaxation_img in", values, "relaxationImg");
            return (Criteria) this;
        }

        public Criteria andRelaxationImgNotIn(List<String> values) {
            addCriterion("relaxation_img not in", values, "relaxationImg");
            return (Criteria) this;
        }

        public Criteria andRelaxationImgBetween(String value1, String value2) {
            addCriterion("relaxation_img between", value1, value2, "relaxationImg");
            return (Criteria) this;
        }

        public Criteria andRelaxationImgNotBetween(String value1, String value2) {
            addCriterion("relaxation_img not between", value1, value2, "relaxationImg");
            return (Criteria) this;
        }

        public Criteria andRelaxationHttpIsNull() {
            addCriterion("relaxation_http is null");
            return (Criteria) this;
        }

        public Criteria andRelaxationHttpIsNotNull() {
            addCriterion("relaxation_http is not null");
            return (Criteria) this;
        }

        public Criteria andRelaxationHttpEqualTo(String value) {
            addCriterion("relaxation_http =", value, "relaxationHttp");
            return (Criteria) this;
        }

        public Criteria andRelaxationHttpNotEqualTo(String value) {
            addCriterion("relaxation_http <>", value, "relaxationHttp");
            return (Criteria) this;
        }

        public Criteria andRelaxationHttpGreaterThan(String value) {
            addCriterion("relaxation_http >", value, "relaxationHttp");
            return (Criteria) this;
        }

        public Criteria andRelaxationHttpGreaterThanOrEqualTo(String value) {
            addCriterion("relaxation_http >=", value, "relaxationHttp");
            return (Criteria) this;
        }

        public Criteria andRelaxationHttpLessThan(String value) {
            addCriterion("relaxation_http <", value, "relaxationHttp");
            return (Criteria) this;
        }

        public Criteria andRelaxationHttpLessThanOrEqualTo(String value) {
            addCriterion("relaxation_http <=", value, "relaxationHttp");
            return (Criteria) this;
        }

        public Criteria andRelaxationHttpLike(String value) {
            addCriterion("relaxation_http like", value, "relaxationHttp");
            return (Criteria) this;
        }

        public Criteria andRelaxationHttpNotLike(String value) {
            addCriterion("relaxation_http not like", value, "relaxationHttp");
            return (Criteria) this;
        }

        public Criteria andRelaxationHttpIn(List<String> values) {
            addCriterion("relaxation_http in", values, "relaxationHttp");
            return (Criteria) this;
        }

        public Criteria andRelaxationHttpNotIn(List<String> values) {
            addCriterion("relaxation_http not in", values, "relaxationHttp");
            return (Criteria) this;
        }

        public Criteria andRelaxationHttpBetween(String value1, String value2) {
            addCriterion("relaxation_http between", value1, value2, "relaxationHttp");
            return (Criteria) this;
        }

        public Criteria andRelaxationHttpNotBetween(String value1, String value2) {
            addCriterion("relaxation_http not between", value1, value2, "relaxationHttp");
            return (Criteria) this;
        }

        public Criteria andRelaxationRecommendIsNull() {
            addCriterion("relaxation_recommend is null");
            return (Criteria) this;
        }

        public Criteria andRelaxationRecommendIsNotNull() {
            addCriterion("relaxation_recommend is not null");
            return (Criteria) this;
        }

        public Criteria andRelaxationRecommendEqualTo(Integer value) {
            addCriterion("relaxation_recommend =", value, "relaxationRecommend");
            return (Criteria) this;
        }

        public Criteria andRelaxationRecommendNotEqualTo(Integer value) {
            addCriterion("relaxation_recommend <>", value, "relaxationRecommend");
            return (Criteria) this;
        }

        public Criteria andRelaxationRecommendGreaterThan(Integer value) {
            addCriterion("relaxation_recommend >", value, "relaxationRecommend");
            return (Criteria) this;
        }

        public Criteria andRelaxationRecommendGreaterThanOrEqualTo(Integer value) {
            addCriterion("relaxation_recommend >=", value, "relaxationRecommend");
            return (Criteria) this;
        }

        public Criteria andRelaxationRecommendLessThan(Integer value) {
            addCriterion("relaxation_recommend <", value, "relaxationRecommend");
            return (Criteria) this;
        }

        public Criteria andRelaxationRecommendLessThanOrEqualTo(Integer value) {
            addCriterion("relaxation_recommend <=", value, "relaxationRecommend");
            return (Criteria) this;
        }

        public Criteria andRelaxationRecommendIn(List<Integer> values) {
            addCriterion("relaxation_recommend in", values, "relaxationRecommend");
            return (Criteria) this;
        }

        public Criteria andRelaxationRecommendNotIn(List<Integer> values) {
            addCriterion("relaxation_recommend not in", values, "relaxationRecommend");
            return (Criteria) this;
        }

        public Criteria andRelaxationRecommendBetween(Integer value1, Integer value2) {
            addCriterion("relaxation_recommend between", value1, value2, "relaxationRecommend");
            return (Criteria) this;
        }

        public Criteria andRelaxationRecommendNotBetween(Integer value1, Integer value2) {
            addCriterion("relaxation_recommend not between", value1, value2, "relaxationRecommend");
            return (Criteria) this;
        }

        public Criteria andRelaxationRcauseIsNull() {
            addCriterion("relaxation_rcause is null");
            return (Criteria) this;
        }

        public Criteria andRelaxationRcauseIsNotNull() {
            addCriterion("relaxation_rcause is not null");
            return (Criteria) this;
        }

        public Criteria andRelaxationRcauseEqualTo(String value) {
            addCriterion("relaxation_rcause =", value, "relaxationRcause");
            return (Criteria) this;
        }

        public Criteria andRelaxationRcauseNotEqualTo(String value) {
            addCriterion("relaxation_rcause <>", value, "relaxationRcause");
            return (Criteria) this;
        }

        public Criteria andRelaxationRcauseGreaterThan(String value) {
            addCriterion("relaxation_rcause >", value, "relaxationRcause");
            return (Criteria) this;
        }

        public Criteria andRelaxationRcauseGreaterThanOrEqualTo(String value) {
            addCriterion("relaxation_rcause >=", value, "relaxationRcause");
            return (Criteria) this;
        }

        public Criteria andRelaxationRcauseLessThan(String value) {
            addCriterion("relaxation_rcause <", value, "relaxationRcause");
            return (Criteria) this;
        }

        public Criteria andRelaxationRcauseLessThanOrEqualTo(String value) {
            addCriterion("relaxation_rcause <=", value, "relaxationRcause");
            return (Criteria) this;
        }

        public Criteria andRelaxationRcauseLike(String value) {
            addCriterion("relaxation_rcause like", value, "relaxationRcause");
            return (Criteria) this;
        }

        public Criteria andRelaxationRcauseNotLike(String value) {
            addCriterion("relaxation_rcause not like", value, "relaxationRcause");
            return (Criteria) this;
        }

        public Criteria andRelaxationRcauseIn(List<String> values) {
            addCriterion("relaxation_rcause in", values, "relaxationRcause");
            return (Criteria) this;
        }

        public Criteria andRelaxationRcauseNotIn(List<String> values) {
            addCriterion("relaxation_rcause not in", values, "relaxationRcause");
            return (Criteria) this;
        }

        public Criteria andRelaxationRcauseBetween(String value1, String value2) {
            addCriterion("relaxation_rcause between", value1, value2, "relaxationRcause");
            return (Criteria) this;
        }

        public Criteria andRelaxationRcauseNotBetween(String value1, String value2) {
            addCriterion("relaxation_rcause not between", value1, value2, "relaxationRcause");
            return (Criteria) this;
        }

        public Criteria andGameIdIsNull() {
            addCriterion("game_id is null");
            return (Criteria) this;
        }

        public Criteria andGameIdIsNotNull() {
            addCriterion("game_id is not null");
            return (Criteria) this;
        }

        public Criteria andGameIdEqualTo(Integer value) {
            addCriterion("game_id =", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdNotEqualTo(Integer value) {
            addCriterion("game_id <>", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdGreaterThan(Integer value) {
            addCriterion("game_id >", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("game_id >=", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdLessThan(Integer value) {
            addCriterion("game_id <", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdLessThanOrEqualTo(Integer value) {
            addCriterion("game_id <=", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdIn(List<Integer> values) {
            addCriterion("game_id in", values, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdNotIn(List<Integer> values) {
            addCriterion("game_id not in", values, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdBetween(Integer value1, Integer value2) {
            addCriterion("game_id between", value1, value2, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdNotBetween(Integer value1, Integer value2) {
            addCriterion("game_id not between", value1, value2, "gameId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}